/**
 * 权限子应用
 */
module.exports = {
    /**
     * 从session中读取用户
     */
    getUser: (req, res, next) => {
        req.user = req.session.user;
        next();
    }
}